<?php 
	$language_mapper = $header["language_mapper"]; 
	$language_key = $header["current_language"]; 
	$english_name = $language_mapper[$language_key];

	$currency_mapper = $header["currency_mapper"]; 
	$current_key = $header["current_currency"];
	$current_name = $currency_mapper[$current_key];
?>
<script type="text/javascript">
	var URL = '<?= $domain['web'] ?>'
	var URLs = '<?= $domain['static'] ?>'
	var apiUrl = '<?= $domain['api'] ?>'
</script>

<div class="header">
	<div class="header_m">
		<div class="logo">
			<a href="/"><img src="<?= $domain['static'] ?>images/logo.png" alt=""></a></div>
		<div class="select language">
			<div class="language_div"><?php echo $english_name;?></div>
			<div class="languagelist select_option" >
				<p></p>
				<ul>
				<?php 
			
				foreach ($header["language_mapper"] as $key => $value) { ?>
					<li data-value="<?php echo $key;?>"><?php echo $value;?></li>
				<?php } ?>

					
				</ul>
			</div>
		</div>
<!-- 		<div class="select currency ">
			<div class="currency_div"><?php echo$current_key.' '. $current_name;?></div>
			<div class="currencylist select_option">
				<p></p>
				<ul>
					<?php foreach ($header["currency_mapper"] as $key => $value) { ?>
						<li data-value="<?php echo $key;?>"><?php echo $key.' '.$value;?></li>
					<?php } ?>
				</ul>
			</div>
		</div> -->
		<div class="user">

			<div class="tap_act">
			<?php 
				if (!empty($header['logined_member'])) {
					echo $header['logined_member']['name'];
				}else{
					echo lang('passport_words_logreg');
				}
			?>
			<p></p>
			</div>
			<ul>
			<?php 
				if (!empty($header['logined_member'])) {
					// echo '<li>'.lang('site_my_bookings').'</li><li>'.lang('site_my_wishlist').'</li><li id="Logout">'.lang('passport_words_logout').'</li>';
					echo '<li id="site_merchant">'.lang('site_merchant').'</li><li id="Logout">'.lang('passport_words_logout').'</li>';
				}else{
					echo '<li id="site_merchant">'.lang('site_merchant').'</li><li id="Login">'.lang('passport_words_login').'</li><li id="Register">'.lang('passport_words_register').'</li>';
				}
			?>
				<div class="tap_bg"></div>
			</ul>
		</div>

	</div>
</div>
<div class="mask" ></div>

<!-- 注册弹窗 -->
<div class="register anim">
<!-- <p class="mask_bg"></p> -->
	<!-- <div class="form"> -->
		<div class="Register_v">
			<div class="register_logo">
				<img src="<?= $domain['static'] ?>images/l_login.png" alt=""></div>
				<div class="Prompt anim">错误提示信息</div>
			<input type="text" datatype="*" class="register_name" errormsg="不能为空" placeholder="Enter your username">
			<input type="password" name="userpassword" datatype="*" class="register_password" placeholder="Enter your password">
			<input type="password" name="userpassword2" datatype="*"  recheck="userpassword" class="register_password_again" placeholder="Enter your password again">
			<input type="text" class="register_email" datatype="e" placeholder="Enter your E-mail">
			<div class="register_remember">
				<label>
					<input type="checkbox" datatype="*" checked="" class="register_checkbox">
					<span>
						By creating an account，you agree to our Terms of Service
					</span>
				</label>
			</div>
			<input type="submit" value="Sign up" class="register_btn">
		</div>
	<!-- </div> -->
</div>

<!-- end -->


<!-- login -->

<div class="login anim">
	<!-- <p class="mask_bg"></p> -->
	<!-- <div class="form"> -->
		<div class="form_v">
		<form>
			<div class="login_logo">
				<img src="<?= $domain['static'] ?>images/l_login.png" alt=""></div>
				<div class="Prompt"></div>
			<input type="text" class="login_name"  datatype="*" placeholder="Enter your name / E-mail">
			<input type="password" class="login_password"  datatype="*" placeholder="Enter your password">
			<div class="login_remember">
				<label>
					<input type="checkbox"  datatype="*" class="login_checkbox">
					<span>Remember me</span>
				</label>
				<span class="Forget">Forget passwords?</span>
			</div>
			<input type="submit" value="Log in" class="login_btn">
			<div class="other">
				<span>or</span>
				<ul>
					<li>
						<img src="<?= $domain['static'] ?>images/9.png" alt=""></li>
					<li>
						<img src="<?= $domain['static'] ?>images/f.png" alt=""></li>
					<li>
						<img src="<?= $domain['static'] ?>images/g.png" alt=""></li>
				</ul>
			</div>
			</form>
		</div>
	<!-- </div> -->
</div>

<!-- end -->

<!-- error  mask 提示 -->
<!-- <div class="error">
	<div class="error_con"></div>
	<div class="error_btn">ok</div>
</div> -->
<!-- end -->


<!-- 忘记密码-确认邮箱 -->
<div class="password_email Forget_password_email"  >
	<!-- <p class="mask_bg"></p> -->
	<!-- <div class="form"> -->
		<div class="password_email_v">
			<div class="Prompt Prompttop"></div>

			<input type="text" class="password_text_ok" datatype="e"  placeholder="Enter the mailbox you used to register">
			<input type="submit"  value="ok" class="password_submit">
		</div>
	<!-- </div> -->
</div>

<!-- end -->
<script src="<?= $domain['static'] ?>js/jquery.min.js"></script>
<script type="text/javascript">
	var language = "<?php echo $cookie['language_key'] ?>"
	var currency = "<?php echo $cookie['currency_key'] ?>"

</script>